import Vue from "vue";

Vue.prototype.$go = function(path, attr) {
  this.$router.push({
    path,
    query: { ...attr }
  });
};
Vue.prototype.$go2 = function(name, attr) {
  this.$router.push({
    name,
    query: { ...attr }
  });
};
